<template>
  <div class="home">
    <Header />
    <div class="main-content">
      <div class="content-left">
        <CategoryNav />
        <AdBanner />
        <ProductList />
      </div>
      <div class="content-right">
        <Sidebar />
      </div>
    </div>
    <Footer />
  </div>
</template>

<script>
import Header from "@/components/Header.vue";
import CategoryNav from "@/components/CategoryNav.vue";
import AdBanner from "@/components/AdBanner.vue";
import ProductList from "@/components/ProductList.vue";
import Sidebar from "@/components/Sidebar.vue";
import Footer from "@/components/Footer.vue";

export default {
  name: "HomeView",
  components: {
    Header,
    CategoryNav,
    AdBanner,
    ProductList,
    Sidebar,
    Footer,
  },
};
</script>

<style scoped>
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex: 1;
  margin-top: 20px;
}

.content-left {
  flex: 3;
  margin-right: 20px;
}

.content-right {
  flex: 1;
}
</style>
